package com.itheima.mapper.backend;

import com.itheima.pojo.backend.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryDao {

    int add(Category category);


    List<Category> isExist(Category category);


    /**
     * 分页查询
     */
    List<Category> select(String name);


    List<Category> list();


    int delete(String id);


    int updatCategory(Category category);

    Category selectid(String id);

}
